package com.young.requestlimit.config;

import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;

@Configuration
@ConfigurationProperties(prefix = "request.limit")
@Getter
public class RequestLimitConfig implements Serializable {

    /**
     * 开关
     */
    private String enable = "true";

    /**
     * 默认过期时间
     */
    private Long defaultLimitTime = 1000L;
}
